<#assign ctx=request.contextPath/>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>注册</title>
		<link rel="stylesheet" href="${ctx}/css/common.css" />
		<link rel="stylesheet" href="${ctx}/css/reg.css" />
	</head>

	<body>
		<div class="middle">
			<a href="index.html"><img src="${ctx}/img/logo.jpg" alt="logo" /></a>
			<form id="reg"  action="${ctx}/customer/register"  method="post">
				<label>会员名</label><input type="text" name="user_id" id="name" value="test"/>
				<div id="nametip">*请输入6-16位的用户名!</div>
				<div id="nametip1">*该会员名已经被注册了！</div>
				<div id="nametip2">*不允许有空格！</div>
				<br />
				<label>密码</label><input type="password" name="pass_word" id="pwd" value="123456"/>
				<div id="pwdtip">*请输入6-18位的密码！</div>
				<br />
				<label>确认密码</label><input type="password" name="pass_word" id="comfirm_pwd" value="123456"/>
				<div id="comfirm_pwdtip">*密码不一致</div>
				<br />
				<label>Email</label><input type="text" name="email" id="email" value="1182891631@qq.com"/>
				<div id="emailtip">*邮箱格式不正确</div>
				<div id="emailtip1">*该邮箱已经被注册了！</div>
				<br />
				<label>手机号</label><input type="text" name="phone" id="phone" value="15816613438"/>
				<div id="phonetip">*手机格式不正确</div>
				<div id="phonetip1">*该手机已经被注册了！</div>
				<br />
				<label>验证码</label><input type="text" name="code" id="code" />
				<span class="vertification_code">
				<img id="vimg" src="${ctx}/CheckController" style="width: 100px;height: 50px;"></span>
				<span class="change_img"><a id="kanbuq" href="javascript:;">看不清，换一张</a></span>
				<div id="codetip">*验证码有误</div>
				<br />
				<input type="checkbox" name="agree" id="agree" /><label for="agree">同意注册协议</label>
				<div id="checktip">*请勾选协议</div>
				<br />
				<input type="submit" id="sub" name="sub" value="注册" onclick="subInput()"  />
			</form>
		</div>
		<!--尾部-->
		<#include "common/bottom.html">
		<script type="text/javascript" src="js/reg.js"></script>
		<script type="text/javascript" src="${ctx}/static/lib/jquery/1.9.1/jquery.min.js"></script> 
		<script type="text/javascript" src="${ctx}/static/h-ui/js/H-ui.js"></script> 
		<script type="text/javascript">
		$(function(){
			$("#vimg").click(function(){
				var num = Math.random();
				console.log("num:"+num);
				$(this).attr("src","${ctx}/CheckController?"+num);
			});
		})
		
		</script>
	</body>

</html>